//
//  UIView+CLLayer.m
//  CLBasicsDemo
//
//  Created by 小草毋正 on 2017/9/13.
//  Copyright © 2017年 zbw. All rights reserved.
//

#import "UIView+CLLayer.h"

@implementation UIView (CLLayer)

- (UIColor *)layerBorderColor {
    return [UIColor colorWithCGColor:self.layer.borderColor];
}

- (void)setLayerBorderColor:(UIColor *)layerBorderColor {
    self.layer.borderColor = layerBorderColor.CGColor;
}

- (CGFloat)layerBorderWidth {
    return self.layer.borderWidth;
}

- (void)setLayerBorderWidth:(CGFloat)layerBorderWidth {
    self.layer.borderWidth = layerBorderWidth;
}

- (CGFloat)layerCornerRadius {
    return self.layer.cornerRadius;
}

- (void)setLayerCornerRadius:(CGFloat)layerCornerRadius {
    self.layer.cornerRadius = layerCornerRadius;
}


- (void)layerBorderColor:(UIColor *)color width:(CGFloat)width cornerRadius:(CGFloat)cornerRadius {
    self.layerBorderColor = color;
    self.layerBorderWidth = width;
    self.layerCornerRadius = cornerRadius;
}


@end
